package com.cims.bo.task;

import java.util.Date;
import java.util.List;

import com.cims.common.exception.BoException;
import com.cims.common.vo.Task;
import com.cims.dao.task.TaskDAO;
import com.cims.dao.task.TaskDAOImpl;

public class TaskBOImpl implements TaskBO{

	TaskDAO dao = new TaskDAOImpl();
	@Override
	public List<Task> getListTask() throws BoException {
		try {
			return dao.getListTask();
		} catch (Exception e) {
			// TODO: handle exception
		}
		return null;
	}

	@Override
	public Task findByTaskId(int taskId) throws BoException {
		try {
			return dao.findByTaskId(taskId);
		} catch (Exception e) {
			// TODO: handle exception
		}
		return null;
	}

	@Override
	public List<Task> getListTaskByStaffId(int staffId) throws BoException {
		try {
			return dao.getListTaskByStaffId(staffId);
		} catch (Exception e) {
			// TODO: handle exception
		}
		return null;
	}

	@Override
	public List<Task> getTodayListTaskByStaffId(int staffId)
			throws BoException {
		try {
			return dao.getTodayListTaskByStaffId(staffId);
		} catch (Exception e) {
			// TODO: handle exception
		}
		return null;
	}

	@Override
	public Boolean insert(Task task)
			throws BoException {
		try {
			return dao.insert(task);
		} catch (Exception e) {
			// TODO: handle exception
		}
		return false;
	}
}
